{include file="index/_meta" /}
    <title>搜索</title>
</head>
<body>
    <div id="app">
        <van-nav-bar
                title="搜索"
                left-text="返回"
                left-arrow
                @click-left="window.history.back();"
        ></van-nav-bar>

        <van-search
                v-model="value"
                show-action
                placeholder="请输入搜索商品关键词"
                @search="onSearch"
        >
            <template #action>
                <div @click="onSearch">搜索</div>
            </template>
        </van-search>

    </div>
    {include file="index/_share" /}
    <script>
        new Vue({
            el:"#app",
            data(){
                return{
                    value:''
                }
            },
            created(){},
            methods:{
                onSearch(){
                    window.location.href = "{:url('index/search_result')}?keywords="+this.value;
                },
            },
        })
    </script>
</body>
</html>
